package com.ruoyi.business.controller;

import com.ruoyi.business.domain.ExamQuestion;
import com.ruoyi.business.domain.Question;
import com.ruoyi.business.domain.bo.ExamQuestionBo;
import com.ruoyi.business.domain.vo.QuestionVo;
import com.ruoyi.business.service.IExamQuestionService;
import com.ruoyi.business.service.IExamService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/12
 **/
@RestController
@RequestMapping("/business/examQuestion")
public class ExamQuestionController extends BaseController {

    @Autowired
    private IExamQuestionService examQuestionService;


    @ApiOperation("根据考试id和考试编号查询出考试的题目信息")
    @GetMapping("/list")
    public AjaxResult examQuestionList(ExamQuestionBo bo) {
        List<QuestionVo> result = examQuestionService.selectExamQuestionList(bo);
        return AjaxResult.success(result);
    }

}
